/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package taller1;

/**
 *
 * @author David
 */
public class Taller1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        int indx;
        Pedido pedido1 = new Pedido();
        Maderas[] IndiceMaderas = new Maderas[5];//apuntadores
        for (indx = 0; indx< IndiceMaderas.length ; indx++){            
            IndiceMaderas[indx] = new Maderas();
        }
        
        IndiceMaderas[0].SetMaderas(1,"Cherry",5.95,0.5);
        IndiceMaderas[1].SetMaderas(2,"Curly Maple",6.0,1.5);
        IndiceMaderas[2].SetMaderas(3,"Genuine Mahogany",9.6,3);
        IndiceMaderas[3].SetMaderas(4,"Wenge",22.35,5);
        IndiceMaderas[4].SetMaderas(5,"White Oak",6.7,1.5);
             
              
        
                
        java.awt.EventQueue.invokeLater(new Runnable() {
            
            
            
            public void run() {
                Interfaz interfaz = new Interfaz();
                interfaz.setLocationRelativeTo(null);
                interfaz.setVisible(true);
            }
        });
      
        
     }
}
